package com.hd.appcommon.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hd.appcommon.entity.Dept;
import com.hd.appcommon.entity.Node;
import com.hd.appcommon.entity.vo.DeptSelectVo;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author administrator
 * @since 2020-11-24
 */
public interface DeptService extends IService<Dept> {

    List<DeptSelectVo> getDeptSelectVo(Long deptId);

    List<Dept> getAllLowNodeDepts(Long deptId);

    List<Dept> getAllLowNodeDepts2(Long deptId);

    List<Dept> getFatherDepts(Long deptId);

    String getDeptChildren(String deptId);

    Node search(Long deptId, Node tree);

    Integer hierarchy(Long deptId, Node tree);

    List<String> getHasAdminLeaderids();

    List<Dept> getDeptAndFatherDept(String[] deptIds);

    List<String> getIds(QueryWrapper<Dept> queryWrapper);

    String getName(String classes);
}
